﻿<%@ Import Namespace="ModelClassesLinqToSql.Views.Movie"%>
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IList<IndexViewModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Index</h2>

<table>
<tr>
    <th></th>
    <th>Id</th>
    <th>Title</th>
    <th>Director</th>
    <th>DateReleased</th>
</tr>
<% foreach (IndexViewModel m in Model)
   {
       Html.RenderPartial("MoviePartial", m);
   } %>
</table>

</asp:Content>
